package com.moli.iov.his.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.moli.iov.his.model.po.ReportSelledOnline;
import com.moli.iov.his.model.po.ReportStoreSelledOnline;
import com.moli.iov.rest.RestResponse;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 门店、中转库已售车辆上线统计 服务类
 * </p>
 *
 * @author lxy
 * @since 2019-06-17
 */
public interface IReportStoreSelledOnlineService extends IService<ReportStoreSelledOnline> {
    /***
     * 保存已售在网车辆信息
     * @param reportStoreSelledOnline
     * @return
     */
    RestResponse saveReportSelledOnline(ReportStoreSelledOnline reportStoreSelledOnline);

    /**
     * 查询7天前的历史已售车辆在线统计数据
     * @return
     */
    List<ReportStoreSelledOnline> querySelledOnlineReport(String storeCode) throws Exception;

    /**
     * 根据开始时间和结束时间查询已售车辆在线统计数据
     * @param map
     * @return
     */
    List<ReportStoreSelledOnline> querySelledOnlineReportByTime(Map map) throws Exception;
}
